package com.persondemo.videoappliction.ui.adapter;

import android.graphics.Color;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.persondemo.videoappliction.R;
import com.persondemo.videoappliction.bean.DianPingChoiceBean;
import com.persondemo.videoappliction.bean.PutShopTypeBean;

import java.util.List;

public class PutShopTypeAdapter extends BaseQuickAdapter<PutShopTypeBean.DataBean, BaseViewHolder> {
    public PutShopTypeAdapter(@Nullable List<PutShopTypeBean.DataBean> data) {
        super(R.layout.item_dianping_01, data);
    }

    @Override
    protected void convert(BaseViewHolder helper,PutShopTypeBean.DataBean item) {
        TextView textView=helper.getView(R.id.item_dianping01_title);
        if (item.ischeck()==true){
            textView.setTextColor(Color.parseColor("#ff9829"));
        }else {
            textView.setTextColor(Color.parseColor("#000000"));
        }
        helper.setText(R.id.item_dianping01_title, item.getName());
//        helper.setText(R.id.item_dianping01_num, item.getId());
    }
}
